home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / HENSA / MATHS / PLPLOT / PLPLOT.ZIP / sys / os2 / pmserv / pmdefs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-05-11  |  1.6 KB  |  78 lines

  1. /*
  2.     pmdefs.h
  3.     Geoffrey Furnish
  4.     22 September 1991
  5.     
  6.     This file contains definitions of constants and structures which
  7.     are need by the PLPLOT 
  8.  
  9.     metafile writer and renderer.
  10.  
  11.     25 March 1992
  12.     VERSION 1.0
  13. */
  14.  
  15. /* Symbolic constants needed in this file.
  16.    Probably best to not exceed 32767 with these two. 
  17.    WARNING: If you change these, it will affect how old metafiles are
  18.    plotted, so be careful. */
  19.  
  20. #define PLMETA_X    10000
  21. #define PLMETA_Y    10000
  22.  
  23. /* These numbers are supposed to be in dots/mm.  Since I am using a very
  24.    large virtual display space, these need to be pretty big. */
  25.  
  26. #define PIXEL_RES_X    42
  27. #define PIXEL_RES_Y    56
  28.  
  29.  
  30. /* Structures and such for specifying the available commands. */
  31.  
  32. typedef int COMMAND;    /* Use for commands without paramaters. */
  33. #define UCHAR unsigned char
  34.  
  35. /* 
  36.     The available commands are ...
  37.  
  38.     *** NOTICE !!! ***
  39.     If you change ANY of the following, you will wreck backward
  40.     compatibility with old metafiles.  You may add, but do
  41.     NOT delete !!!
  42. */
  43.  
  44. #define INITIALIZE 1
  45. #define CLOSE 2
  46. #define SWITCH_TO_TEXT 3
  47. #define SWITCH_TO_GRAPH 4
  48. #define CLEAR 5
  49. #define PAGE 6
  50. #define NEW_COLOR 7
  51. #define NEW_WIDTH 8
  52. #define LINE 9
  53. #define LINETO 10
  54. #define ESCAPE 11
  55. #define ESC_NOOP 12
  56. #define ESC_RGB 13
  57.  
  58. #define    STACKSIZE 8192
  59.  
  60. #define PIPE_BUFFER_SIZE    1000
  61. #define PIPE_NAME    "\\pipe\\pmplplot"
  62.  
  63. typedef struct {
  64.     PLINT a;
  65. } PMSTUFF;
  66.  
  67. /*
  68.     The following are various things needed to get my resources
  69.     to work correctly with pmserv.
  70. */
  71.  
  72. #define ID_RESOURCE 1
  73.  
  74. #define IDM_ADVANCE    1
  75. #define IDM_CONTROLS    2
  76.  
  77. #define IDM_AUTO_ADVANCE    20
  78.